package com.space.school.domain;

import java.util.Date;

public class OrderMaster {
//   订单号
    String orderId;
//    买家名字
    String buyer_name;
    //    买家电话
    String buyer_phone;
    //    买家地址
    String buyer_address;
    //    买家微信openid
    String buyer_openid;
    //    总金额
    int order_amount;
    //    订单状态
    int order_status;
    //    支付状态
    int pay_status;
//    创建时间
    Date create_time;
//    修改时间
    Date update_time;
//    总数量
    int order_total;

    public OrderMaster(String orderId, String buyer_name, String buyer_phone, String buyer_address, String buyer_openid, int order_amount, int order_status, int pay_status, Date create_time, Date update_time, int order_total) {
        this.orderId = orderId;
        this.buyer_name = buyer_name;
        this.buyer_phone = buyer_phone;
        this.buyer_address = buyer_address;
        this.buyer_openid = buyer_openid;
        this.order_amount = order_amount;
        this.order_status = order_status;
        this.pay_status = pay_status;
        this.create_time = create_time;
        this.update_time = update_time;
        this.order_total = order_total;
    }

    public OrderMaster() {
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public String getBuyer_name() {
        return buyer_name;
    }

    public void setBuyer_name(String buyer_name) {
        this.buyer_name = buyer_name;
    }

    public String getBuyer_phone() {
        return buyer_phone;
    }

    public void setBuyer_phone(String buyer_phone) {
        this.buyer_phone = buyer_phone;
    }

    public String getBuyer_address() {
        return buyer_address;
    }

    public void setBuyer_address(String buyer_address) {
        this.buyer_address = buyer_address;
    }

    public String getBuyer_openid() {
        return buyer_openid;
    }

    public void setBuyer_openid(String buyer_openid) {
        this.buyer_openid = buyer_openid;
    }

    public int getOrder_amount() {
        return order_amount;
    }

    public void setOrder_amount(int order_amount) {
        this.order_amount = order_amount;
    }

    public int getOrder_status() {
        return order_status;
    }

    public void setOrder_status(int order_status) {
        this.order_status = order_status;
    }

    public int getPay_status() {
        return pay_status;
    }

    public void setPay_status(int pay_status) {
        this.pay_status = pay_status;
    }

    public Date getCreate_time() {
        return create_time;
    }

    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }

    public Date getUpdate_time() {
        return update_time;
    }

    public void setUpdate_time(Date update_time) {
        this.update_time = update_time;
    }

    public int getOrder_total() {
        return order_total;
    }

    public void setOrder_total(int order_total) {
        this.order_total = order_total;
    }

    @Override
    public String toString() {
        return "OrderMaster{" +
                "orderId='" + orderId + '\'' +
                ", buyer_name='" + buyer_name + '\'' +
                ", buyer_phone='" + buyer_phone + '\'' +
                ", buyer_address='" + buyer_address + '\'' +
                ", buyer_openid='" + buyer_openid + '\'' +
                ", order_amount=" + order_amount +
                ", order_status=" + order_status +
                ", pay_status='" + pay_status + '\'' +
                ", create_time=" + create_time +
                ", update_time=" + update_time +
                ", order_total=" + order_total +
                '}';
    }
}
